Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lightbox to have autorotation and configurable options. #358

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

michaeldewolf85
Copy link

I needed to be able to modify the lightbox options but I didn't want to have to modify the source.

As a change I moved the options out of the anonymous function scope to make them globally accessible. I can now override them in my app.

I also needed an autorotate feature.

I consolidated the next and prev logic into two new prototype functions, next() and prev() and replaced them in several places. I also add a prototypal autoSlide function that operates on a timer, and then cancels itself on any input from the user (i.e. click, keypress).

Let me know what you think. Thanks for the awesome library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants